<?php require_once "../config.php";
if(!isset($_SESSION['admin'])) header('Location: login.php')?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-loose.dtd"> 
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<title>拾客>管理平台</title>
	<script type="text/javascript" src="../include/jquery-1.4.4.min.js"></script> 
	<script type="text/javascript" src="../include/jquery-ui-1.8.6.custom.min.js"></script> 
	<link type="text/css" href="../css/custom-theme/jquery-ui-1.8.6.custom.css" rel="stylesheet" /> 
	<link type="text/css" href="css/default.css" rel="stylesheet" />
	<style>
		* {margin: 0; padding: 0;}
		html,body {width:100%; height: 100%;}
		body{overflow: hidden; font-family: tahoma,arial,verdana,sans-serif;}
		td {vertical-align: top;}
		#container {width:100%; height: 100%; background: #EEE; border-collapse: collapse;}
		#sidebar{position: relative; width: 120px; background: #2C89A0 url(images/logo.png) no-repeat center top;}
		#sidebar *{text-align: center; color: white;}
		#sidebar h1{margin: 140px 0 20px; font-size: 42px; line-height: 42px; font-family: 微软雅黑,黑体;}
		#copyright {position: absolute; bottom: 20px; width: 120px;}
		#menu{width: 150px; text-align: center; }
		#menu h2 {margin: 20px 0;}
		#menu ul{margin: 5px 0;}
		#menu ul li{list-style-type: none;}
		#main{height: 100%; background: #FFF;}
	</style>
</head>
<body>
<table id="container">
<tr><td id="sidebar">
		<h1>拾客</h1>
		<p>dev 1.0.1</p>
		<div id="copyright">&copy; 2011</div>
	</td>
	<td id="menu">
		<h2>管理平台</h2>
		<ul><li><a href="admin.php" target="main">站点管理</a></li></ul>
		<ul><li><a href="user.php?action=list" target="main">用户列表</a></li>
			<li><a href="user.php?action=find" target="main">查询用户</a></li>
			<li><a href="user.php?action=add" target="main">添加用户</a></li>
		<ul><li><a href="admin.php?model=item" target="main">物品列表</a></li>
			<li><a href="admin.php?model=item" target="main">添加物品</a></li>
			<li><a href="admin.php?model=item" target="main">修改物品</a></li>
			<li><a href="admin.php?model=item" target="main">删除物品</a></li></ul>
		<ul><li><a href="admin.php?model=letter" target="main">信件管理</a></li></ul>
		<ul>
			<li><a href="/" target="_blank">浏览网站</a></li>
			<li><a href="phpmyadmin" target="_blank">数据库管理</a></li>
			<li><?php echo $_SESSION['admin'];?>，<a href="login.php?action=logout">退出</a></li></ul>
	</td>
	<td id="main"><iframe src="admin.php" name="main" frameborder="0" width="100%" height="100%"></iframe></td>
</tr>
</table>
</body>
</html>